package com.syni.mdd.sjb.common.component.utils.common.enums;

import com.syni.mdd.sjb.common.component.utils.common.constants.CommonResultCode;

public enum CommonResultEnum implements ReturnEnums {
    COMMON_USER_EXPIRE("token失效", CommonResultCode.CODE_USER_TOKEN_FAIL),
    NO_UNIONID_INFO("当前账号没有微信信息，请先进行绑定",CommonResultCode.CODE_USER_NO_BIND_UNIONID),
    WX_BIND_FAIL("绑定失败，请重试",CommonResultCode.CODE_ERROR_100),
    WX_BIND_EXIST("该微信号已绑定其他账号，无法进行绑定",CommonResultCode.CODE_ERROR_100);
    private String desc;
    private String returnCode;

    CommonResultEnum(String desc, String returnCode) {
        this.desc = desc;
        this.returnCode = returnCode;
    }

    @Override
    public String getCode() {
        return returnCode;
    }

    @Override
    public String getMsg() {
        return desc;
    }
}
